<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>电影共享平台 - 登录</title>
    <link rel="stylesheet" href="/static/css/style.css">
</head>
<body>
    <div class="container">
        <div class="auth-container">
            <div class="auth-header">
                <h1>🎬 电影共享平台</h1>
                <h2>用户登录</h2>
            </div>
            
            <div class="auth-form">
                <form id="login-form" action="/login" method="post">
                    <div class="form-group">
                        <label for="username">用户名</label>
                        <input type="text" id="username" name="username" required placeholder="请输入用户名">
                    </div>
                    
                    <div class="form-group">
                        <label for="password">密码</label>
                        <input type="password" id="password" name="password" required placeholder="请输入密码">
                    </div>
                    
                    <button type="submit" class="auth-btn">登录</button>
                    
                    <div class="auth-link">
                        <p>还没有账号？ <a href="/register">立即注册</a></p>
                    </div>
                </form>
                
                {% if error %}
                <div class="auth-error">
                    <p>{{ error }}</p>
                </div>
                {% endif %}
            </div>
        </div>
    </div>
</body>
</html>